import Vue from 'vue'
import CST from './CST.vue'
import router from './router/index'
import store from './store/index'
import 'babel-polyfill'
import "./assets/styles/index.less"


Vue.prototype.$eventHub= Vue.prototype.$eventHub || new Vue()

//console附加打印save函数
import '@/utils/console'

import CustomFooter from 'COMPONENTS/CustomFooter';
Vue.component(CustomFooter.name, CustomFooter);

// import CustomPrint from 'COMPONENTS/CustomPrint';
// Vue.use(CustomPrint)

import YbCard from '@/modules/CST/components/YbCard';
Vue.component(YbCard.name, YbCard);


import { Submenu } from 'element-ui';

import {
  Button,
  ButtonGroup,
  Dropdown,DropdownMenu,DropdownItem,
  MessageBox,
  Loading,
  Message,
  Container,
  Header,
  Footer,
  Main,
  Aside,
  Menu,
  MenuItem,
  MenuItemGroup,
  Select,
  Option,
  Table,
  TableColumn,
  Pagination,
  Form,
  FormItem,
  Input,
  Dialog,
  Tag,
  Statistic,
  TabPane,
  Tabs,
  Notification,
  DatePicker,
  Checkbox,
  CheckboxGroup,
  CheckboxButton,
  Scrollbar,
  Link ,
  Radio,
  RadioGroup,Divider,Card,
  Row,
  Col,
  Cascader
  
} from 'element-ui';
Vue.use(Cascader);

Vue.use(Row);
Vue.use(Col);
Vue.use(Divider);
Vue.use(Card);

Vue.use(Radio);
Vue.use(RadioGroup);

Vue.use(Scrollbar);
Vue.use(Link);

Vue.use(Checkbox);
Vue.use(CheckboxButton);

Vue.use(CheckboxGroup);

Vue.use(DatePicker);

Vue.use(Loading);
Vue.use(Loading.directive);

Vue.use(TabPane);
Vue.use(Tabs);
Vue.use(Tag);
Vue.use(Statistic);

Vue.use(Pagination);

Vue.use(Table);
Vue.use(TableColumn);
Vue.use(Button);
Vue.use(ButtonGroup);
Vue.use(Dropdown);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Container);
Vue.use(Header);
Vue.use(Footer);
Vue.use(Main);
Vue.use(Aside);
Vue.use(Menu);
Vue.use(MenuItem);
Vue.use(MenuItemGroup);
Vue.use(Select);
Vue.use(Option);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Input);
Vue.use(Dialog);

Vue.component('el-submenu', Submenu);




Vue.prototype.$ELEMENT = { size: 'mini', zIndex: 3000 };
Vue.prototype.$loading = Loading.service;
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$prompt = MessageBox.prompt;
Vue.prototype.$notify = Notification;
Vue.prototype.$message = Message;


Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(CST)
}).$mount('#CST')
